<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
    <META http-equiv=Content-Type content="text/html; charset=gb2312">
    <link rel="stylesheet" href="/sys/resources/css/reset.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="/sys/resources/css/style.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="/sys/resources/css/invalid.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="/sys/resources/scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="/sys/resources/scripts/simpla.jquery.configuration.js"></script>
    <script type="text/javascript" src="/sys/resources/scripts/facebox.js"></script>
    <title>设置党员所属党支部</title>
</HEAD>

<c:if test="${not empty msg}">
    <script type="text/javascript">
        alert("${msg}");
        window.location.href="/sys/sysUser/index.do";
    </script>
</c:if>
<BODY class="mian_bg">
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
    <TR height=28>
        <TD class="addr_td">&nbsp;&nbsp;<img src="/sys/resources/images/addr_icon.png">&nbsp;当前位置: 系统设置 > 党员党支部设置</TD>
    </TR>
    <TR>
        <TD bgColor=#7ca600 height=1></TD>
    </TR>
    <TR>
        <TD bgColor=#8ebe00 height=1></TD>
    </TR>
</TABLE>
<div id="main-content">
    <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>党员党支部设置</h3>

            <div class="clear"></div>
        </div>
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <form action="/sys/lodgeinfo/editData.do" method='post' id="form" name="form" onsubmit="deal3();">
                    <table>
                        <tbody>
                        <tr>
                            <td colspan="3"><a href="/sys/sysUser/index.do">【返回列表】</a></td>
                        </tr>
                        <tr>
                            <td>党员党支部设置</td>
                            <td>
                                如果要指定当前用户属于哪个党支部，可选中该党支部名称
                            </td>
                        </tr>

                        <tr>
                            <td>党支部</td>
                        </tr>

                        <tr class="nav_4">
                            <th width="180"></th>
                            <th style="width:50px;">
                                <c:forEach var="item" items="${listLodge}" varStatus="status">
                                    <c:choose>
                                        <c:when test="${status.count==1}">
                                            <input id="${item.id}" type="radio"  name="lodgeid" value="${item.id}" checked="checked">${item.title}&nbsp; &nbsp;&nbsp;&nbsp;
                                        </c:when>
                                        <c:otherwise>
                                            <input id="${item.id}" type="radio"  name="lodgeid" value="${item.id}">${item.title}&nbsp; &nbsp;&nbsp;&nbsp;
                                        </c:otherwise>
                                    </c:choose>
                                    <c:if test="${status.count%6==0}">
                                        <br/>
                                        <br/>
                                    </c:if>

                                </c:forEach>
                            </th>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <input class="button" type="submit" value=" 提交 "/>
                                <input type="hidden" name="uid" value="${uid}">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
            <!-- End #tab1 -->
        </div>
        <!-- End .content-box-content -->
    </div>
    <!-- End .content-box -->
</div>


<script type="text/javascript">

    <c:if test="${not empty lodgeid}">
        $("#" +${lodgeid}).attr('checked', "checked");
    </c:if>

</script>
</BODY>
</HTML>